package d0817_RefTypeAndThreadLocal;

import java.io.IOException;

/**
 * @Program: thread
 * @Description: new 一个对象 强引用类型，垃圾回收不会回收
 * @Author: Mr.Yiu
 * @CreatedTime: 2021-08-17 14:03
 **/
public class T01_NormalReference {

    public static void main(String[] args) throws IOException {
        M m = new M();
        m = null;
        System.gc();

        System.in.read();//阻塞线程，调试时等待gc执行
    }
}
